import * as API from '@/services'
import { createFetch } from '@/utils/request'
import { IResponseData } from '@/services'

export async function modifyPwd(dto: API.ModifyPwd) {
  return createFetch<any, IResponseData<API.AuthInfo>>(
    '/api/v1/modify-pwd',
    'POST',
  )(dto)
}

export async function modifyExpiredPwd(dto: API.ModifyExpiredPwd) {
  return createFetch<any, IResponseData<API.AuthInfo>>(
    '/api/v1/modify-expired-pwd',
    'POST',
  )(dto)
}

export async function modifyAuthPwd(dto: API.ModifyAuthPwd) {
  return createFetch<any, IResponseData<API.AuthInfo>>(
    '/api/v1/odify-auth-pwd',
    'POST',
  )(dto)
}
